package com.java.controller;

import com.java.service.LackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CenterController {

    @Autowired
    private LackService lackService;

    @RequestMapping({"project/center","/"})
    public String pc(Model m){
        int sum = lackService.findSum();
        int sum2 = lackService.findSum2();
        m.addAttribute("sum",sum);
        m.addAttribute("sum2",sum2);
        return "center/center";
    }
}
